package com.raceway.ihcenterapp.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import java.util.Date;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;

@RooJavaBean
@RooToString
@RooEntity(finders = { "findHelpRequestsByRequestUri", "findHelpRequestsByPhoneId", "findHelpRequestsByPhoneInfo", "findHelpRequestsByAssignedASI1" })
public class HelpRequest {

    private Boolean isIntervened;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "MS")
    private Date helpRequestDate;

    private String requestUri;

    private Integer assignedAsi;

    private String phoneId;

    @ManyToOne
    private PhoneInfo phoneInfo;

    @ManyToOne
    private IHS assignedASI1;
}
